D3dHook.dll̏Iƃ[h܂B
[h邾łBʓIPlug-in̂悤API킯ł͂܂B

ȒPȂ̂ƂȊɂȂ܂B

#include <windows.h>
#include <stdio.h>

BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
	static TCHAR  processName[MAX_PATH];

	switch(ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		GetModuleFileName(0, processName, MAX_PATH);
		processName[MAX_PATH-1] = '\0';

		OutputDebugString("⏕DLL[hmF");
		MessageBox(0, processName, "⏕DLL[hmF",  MB_OK);
		
		OutputDebugString("vZX̗Dx܂");
		SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
		break;
	
	case DLL_PROCESS_DETACH:
		OutputDebugString("⏕DLLA[hmF");
		MessageBox(0, processName, "⏕DLLA[hmF",  MB_OK);
		break;
	}
	return TRUE;
}
